package com.liam.rpc.client;

import com.liam.rpc.server.IHelloService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ClientApplication {



    public static void main(String[] args) {
//        SpringApplication.run(ClientApplication.class, args);

        RpcProxyClient client = new RpcProxyClient();
        IHelloService iHelloService =  client.clientProxy(IHelloService.class,"localhost",8080);
        System.out.println(iHelloService.sayHello("liam"));

    }

}
